package DB.Dao.RepairPicture;

/**
 * RepairPictureId entity. @author MyEclipse Persistence Tools
 */

public class RepairPictureId implements java.io.Serializable {

	// Fields

	private Integer breakId;
	private String picLocation;

	// Constructors

	/** default constructor */
	public RepairPictureId() {
	}

	/** full constructor */
	public RepairPictureId(Integer breakId, String picLocation) {
		this.breakId = breakId;
		this.picLocation = picLocation;
	}

	// Property accessors

	public Integer getBreakId() {
		return this.breakId;
	}

	public void setBreakId(Integer breakId) {
		this.breakId = breakId;
	}

	public String getPicLocation() {
		return this.picLocation;
	}

	public void setPicLocation(String picLocation) {
		this.picLocation = picLocation;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof RepairPictureId))
			return false;
		RepairPictureId castOther = (RepairPictureId) other;

		return ((this.getBreakId() == castOther.getBreakId()) || (this
				.getBreakId() != null && castOther.getBreakId() != null && this
				.getBreakId().equals(castOther.getBreakId())))
				&& ((this.getPicLocation() == castOther.getPicLocation()) || (this
						.getPicLocation() != null
						&& castOther.getPicLocation() != null && this
						.getPicLocation().equals(castOther.getPicLocation())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBreakId() == null ? 0 : this.getBreakId().hashCode());
		result = 37
				* result
				+ (getPicLocation() == null ? 0 : this.getPicLocation()
						.hashCode());
		return result;
	}

}